package com.qf.day09.homework01;

import java.util.Comparator;

public class HeroComparator implements Comparator<Hero> {
    @Override
    public int compare(Hero h1, Hero h2) {
        return  Integer.compare(h1.getLevel(), h2.getLevel());
    }
}
